Page({
  data: {
  },
 go(){
  my.request({
    url: 'http://localhost:3434/selectAll',
    method: 'POST',
    data: {
      from: '支付宝',
      production: 'AlipayJSAPI',
    },
    headers: {
      'content-type': 'application/json', //默认值
    },
    dataType: 'json',
    success: function (res) {
      console.log(res.data);
    
    },
    fail: function (error) {
      console.error('fail: ', JSON.stringify(error));
    },
    complete: function (res) {
      my.hideLoading();
      my.alert({ content: 'complete' });
    },
  });
 }
 
});

